package com.htsk.city.services.core.entity;

import com.htsk.city.services.core.domain.CityServiceSubCategory;
import com.htsk.city.services.core.domain.ServiceSubCategory;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class ServiceSubCategoryVO {
    private Long id;
    private Long serviceCategoryId;
    private Long serviceSubCategoryId;
    private String serviceSubCategoryName;
    private String introduceImage;
    private String introduceText;
    private BigDecimal servicePrice;
    private String extendField;

    public ServiceSubCategoryVO(ServiceSubCategory serviceSubCategory, CityServiceSubCategory cityServiceSubCategory){
        this.id=cityServiceSubCategory.getId();
        this.serviceCategoryId=serviceSubCategory.getServiceCategoryId();
        this.serviceSubCategoryId=serviceSubCategory.getId();
        this.serviceSubCategoryName=serviceSubCategory.getServiceSubCategoryName();
        this.introduceImage=cityServiceSubCategory.getIntroduceImage();
        this.introduceText=cityServiceSubCategory.getIntroduceText();
        this.servicePrice=cityServiceSubCategory.getServicePrice();
        this.extendField= cityServiceSubCategory.getExtendField();
    }
}
